<?php
namespace app\plus_exam\validate;
use think\Validate;

class Question extends Validate{

	protected $rule = [
		'category_id' => 'require',
		'type'     =>  'require',
		'content'  =>  'require',
	];

	protected $meassge = [
		'category_id' => '{%lang_category_name}',
		'type'    =>  '{%lang_type_name}',
		'content' => '{%lang_content_name}',
	];

	protected $scene = [
        'add'   =>  ['category_id','type','content'],
        'edit'  =>  ['type','content'],
    ];
} 